package com.emergency.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by 92924 on 2020/3/9.
 * 想定作战分队信息类
 * */
@Entity
@Table(name="bus_scenar_army")
public class ScenarArmy  extends BaseEntity{

    /**想定*/
    @JsonIgnore
    @OneToOne(targetEntity=Scenar.class,fetch= FetchType.LAZY)
    @JoinColumn(name="scenar_id",referencedColumnName="id")
    private Scenar scenar;

    /**分队*/
    @OneToOne(targetEntity=Army.class,fetch= FetchType.LAZY)
    @JoinColumn(name="army_id",referencedColumnName="id")
    private Army army;

    public Scenar getScenar() {
        return scenar;
    }

    public void setScenar(Scenar scenar) {
        this.scenar = scenar;
    }

    public Army getArmy() {
        return army;
    }

    public void setArmy(Army army) {
        this.army = army;
    }

}
